export default class TraceData{
    constructor(){
        this.level = 0;
        this.moves = 0;
        this.usetime = 0;
        this.stars = 0;
        this.score = 0;
        this.score_max = 0;
        this.win = 0;
    }

    reset(lvl,maxScore){
        this.level = lvl;
        this.moves = 0;
        this.usetime = 0;
        this.stars = 0;
        this.score = 0;
        this.win = 0;
        this.score_max = maxScore;
    }

    toString() {
        const that = this;
        return JSON.stringify(that);
    }

}